{extend name="base" /}
<!-- page specific plugin styles -->
{block name="plugin-styles"}{/block}
<!-- inline styles related to this page -->
{block name="inline-styles"}{/block}
<!-- breadcrumb -->
{block name="breadcrumbs"}
<ul class="breadcrumb">
    <li>
        <i class="ace-icon fa fa-home home-icon"></i>
        <a href="{:url('Index/index')}">首页</a>
    </li>
</ul>
<!-- /.breadcrumb -->
{/block}
<!-- PAGE CONTENT BEGINS -->
{block name="content"}
<h3 class="header smaller lighter blue">代理概括</h3>
<div class="infobox-container">
    <div class="infobox infobox-pink">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-users"></i>
        </div>

        <div class="infobox-data">
            <span class="infobox-data-number">{$memberCount}</span>
            <div class="infobox-content"> 代理总数量</div>
        </div>
    </div>

    <div class="infobox infobox-orange">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-bookmark"></i>
        </div>

        <div class="infobox-data">
            <span class="infobox-data-number">{$gradeVCount}</span>
            <div class="infobox-content">品正商V数量</div>
        </div>
    </div>

    <div class="infobox infobox-blue">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-bookmark-o"></i>
        </div>

        <div class="infobox-data">
            <span class="infobox-data-number">{$gradeCount}</span>
            <div class="infobox-content">品正商数量</div>
        </div>
    </div>
    <a href="{:url('agent/examine')}" title="代理待审核">
    <div class="infobox infobox-red">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-lock"></i>
        </div>

        <div class="infobox-data">
            <span class="infobox-data-number">{$auditCount}</span>
            <div class="infobox-content">待审核数量</div>
        </div>
    </div>
    </a>
    <div class="infobox infobox-green">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-flask"></i>
        </div>

        <div class="infobox-data">
            <span class="infobox-data-number">{$todayRegCount}</span>
            <div class="infobox-content">今日注册量</div>
        </div>
    </div>

</div>

<h3 class="header smaller lighter blue">订单概括</h3>
<div class="infobox-container">
    <div class="infobox infobox-pink infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-book"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">总订单数</div>
            <div class="infobox-content">{$order.total}</div>
        </div>
    </div>
    <div class="infobox infobox-red infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-eye"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">待审核订单</div>
            <div class="infobox-content">{$order.audit_count}</div>
        </div>
    </div>
    <div class="infobox infobox-blue infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-fighter-jet"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">已发货订单</div>
            <div class="infobox-content">{$order.send_count}</div>
        </div>
    </div>
    <div class="infobox infobox-orange infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-flag"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">已收货订单</div>
            <div class="infobox-content">{$order.finish_count}</div>
        </div>
    </div>
    <div class="infobox infobox-green infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-flask"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">今日订单量</div>
            <div class="infobox-content">{$order.today_order_count}</div>
        </div>
    </div>
    <div class="infobox infobox-green infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa glyphicon-euro"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">总支付订单金额</div>
            <div class="infobox-content">{$order.total_order_money|number_format}</div>
        </div>
    </div>
    <div class="infobox infobox-green infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa  fa-lock"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">锁定订单金额</div>
            <div class="infobox-content">{$order.lock_order_money | number_format}</div>
        </div>
    </div>
</div>

<h3 class="header smaller lighter blue">代理概括</h3>
<div class="infobox-container">
    <div class="infobox infobox-pink infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-book"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">代理总数</div>
            <div class="infobox-content">{$memberCount}</div>
        </div>
    </div>
    <div class="infobox infobox-pink infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa glyphicon-euro"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">活跃代理总数</div>
            <div class="infobox-content">{$order['orderUserCount']}</div>
        </div>
    </div>
    <div class="infobox infobox-red infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-book"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">活跃比例</div>
            <div class="infobox-content">{$order['orderUserCount']/$memberCount *100 | number_format=###,2}%</div>
        </div>
    </div>
    
</div>

<h3 class="header smaller lighter blue">充值概括</h3>
<div class="infobox-container">
    <div class="infobox infobox-pink infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-book"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">充值数</div>
            <div class="infobox-content">{$rechargeCount}</div>
        </div>
    </div>
    <div class="infobox infobox-pink infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa glyphicon-euro"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">充值总金额</div>
            <div class="infobox-content">{$rechargeMoney| number_format}</div>
        </div>
    </div>
    <div class="infobox infobox-red infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-book"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">后台充值数</div>
            <div class="infobox-content">{$rechargeBackCount}</div>
        </div>
    </div>
    <div class="infobox infobox-red infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa glyphicon-euro"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">后台充值金额</div>
            <div class="infobox-content">{$rechargeBackMoney| number_format}</div>
        </div>
    </div>
    <div class="infobox infobox-blue infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa fa-book"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">前台充值数</div>
            <div class="infobox-content">{$rechargeFrontCount}</div>
        </div>
    </div>
    <div class="infobox infobox-blue infobox-dark" style="height: auto">
        <div class="infobox-icon">
            <i class="ace-icon fa glyphicon-euro"></i>
        </div>

        <div class="infobox-data">
            <div class="infobox-content">前台充值金额</div>
            <div class="infobox-content">{$rechargeFrontMoney | number_format}</div>
        </div>
    </div>
    <a href="{:url('recharge/index')}" title='充值待审核'>
        <div class="infobox infobox-blue infobox-dark" style="height: auto">
            <div class="infobox-icon">
                <i class="ace-icon fa fa-lock"></i>
            </div>
            <div class="infobox-data">
                <div class="infobox-content">前台充值待审核</div>
                <div class="infobox-content">{$rechargeAuditCount}</div>
            </div>
        </div>
    </a>
</div>

<h3 class="header smaller lighter blue">系统信息</h3>

<table class="table tile table-bordered">
    <tbody>
        <tr>
            <th class="text-right">服务器操作系统:</th>
            <td>{$sys_info.os}</td>
            <th class="text-right">服务器域名/IP:</th>
            <td>{$sys_info.domain} [ {$sys_info.ip} ]</td>
        </tr>
        <tr>
            <th class="text-right">服务器环境:</th>
            <td>{$sys_info.web_server}</td>
            <th class="text-right">PHP 版本:</th>
            <td>{$sys_info.phpv}</td>
        </tr>
        
    </tbody> 
</table> 
<!-- /.row -->
{/block}
<!-- PAGE CONTENT ENDS -->
<!-- page specific plugin scripts -->
{block name="plugin-scripts"}{/block}
<!-- inline scripts related to this page -->
{block name="related-scripts"}{/block}